import request from "@/utils/request";

const BASE_URL = "/admin-api/province";

class ProvinceAPI {
  /**
   * 省份API
   *
   * @param data 省份数据
   * @returns 省份结果
   */
  //分省份超标统计
  static excessiveStatistics() {
    return request<any, any>({
      url: `${BASE_URL}/excessiveStatistics`,
      method: "post",
      headers: {
        "Content-Type": "application/json",
      },
    });
  }

  //得到所有省份对象
  static getProvinces() {
    return request<any, any>({
      url: `${BASE_URL}/getProvinces`,
      method: "get",
      headers: {
        "Content-Type": "application/json",
      },
    });
  }
}

export default ProvinceAPI;
